<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="js/tools/jquery-1.4.2.min.js"></script>
<title>

</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
      function addFriend(userId)
		 {
		 if(ProductVote("brandUser"+userId))
	      {
		    $.post("groupbyajax/user!addFriend.action",{userId:userId,flag:2},function(data){
		        
		        
		         if(data.success==true)
		         {
		            alert("关注成功！");
		         }else if(data.success=="error")
		         {
		          delCookie("sigleUser"+userId);
		           alert("不能关注自己！");
		         }else if(data.success==false)
		         {
		          delCookie("sigleUser"+userId);
		           alert("已经关注过！");
		         }else
		         {
		          delCookie("sigleUser"+userId);
		            alert("请登录！");
		         }
		    });
		    }
		 }
</script>
</head>

<div class="container">

<jsp:include page="../head.jsp"/> 
<div class="ge3">
     <div class="ge3_top"></div>
	 <div class="ge3_con">
     <div class="ge3_left">
     <a href="user/user!brandUserPage.action?currentPage=1&userId=<s:property value='users.id'/>">
     <s:if test="userDetial.image.equals('')">
				          <img src="uploadFile/img.gif"  class="img4" style="max-width: 270px;width:expression(this.width > 270 && this.width > this.height ? 270 : true); height: expression(this.height > 219 ? 219 : true);" />
				      </s:if>
				      <s:else>
				         <img src="uploadFile/<s:property value="userDetial.image"/>" class="img4" style="max-width: 270px;max-height:219px;width:expression(this.width > 270 && this.width > this.height ? 270 : true); height: expression(this.height > 219 ? 219 : true);"/>
		
		 </s:else>
		 </a>
<div class="geping"><a href="javascript:addFriend(<s:property value="userId"/>);" target="_parent">关注</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="user/user!brandUserCriticism.action?userId=<s:property value="userId"/>" target="_parent">评价</a></div></div>
	 <div class="ge3_right">
	 <span style="background-color:#ffffff;">
	  品牌分类:
	            <s:iterator  value="categoryList" id="id" status="status">
	               <s:property value="categoryName"/>&nbsp;&nbsp;
	            </s:iterator>
	 </span>
	 <br/>
	 <span style="background-color:#ffffff;">品牌名称:<s:property value="userDetial.username"/></span><br/> 
	 <s:property value="userDetial.describale" escape="false"/>
	 </div>
	 <div class="clear"></div>
	 </div>
	 <div class="ge3_bot"></div>
</div>

<div id="foot"><jsp:include page="../bot.jsp"></jsp:include></div>

</div>
</body>
</html>


